CommandCamera Class Reference

#include <CommandCamera.h>

List of all members.

Public Member Functions

 CommandCamera (RightView *rightview, OSGWindows *osgwind)
 ~CommandCamera ()
void ManipulateCamera ()
void YawLeft ()
void YawRight ()
void PitchUp ()
void PitchDown ()
void ZoomIn ()
void ZoomOut ()
void TopView ()
void ThreedView ()
void SideView ()
void MoveLeft ()
void MoveRight ()
void MoveUp ()
void MoveDown ()

Static Public Attributes

static float m_dCoordx
static float m_dCoordy
static float m_dCoordz
static float m_dHeading
static float m_dPitchValue
static float m_dRotation
static Views viewKind

Protected Attributes

RightView * rightview_
OSGWindows * osgwind_


Detailed Description

CommandCamera class: This class is used in for the camera movements in the editor part of the program. The camera of the editor can move left and right, pithch up and down, zoom in and out to/from the scene for constant values. Also the one of sideview, up view and 3D view of the scene can be chosen from the toolbox. These movements are provided by the callbacks fromn the keyboard. Apart from the camera movements of the right view, the camera of the timeline can also be adjusted by this class from the button callbacks.


Constructor & Destructor Documentation

CommandCamera::CommandCamera (  RightView *  rightview,
OSGWindows *  osgwind
) 
 

CommandCamera constructor. This class can reach the camera of the rightview and viewer of the OsgWindows, since it will change the positions and angles of the camera of rightview and matrix of the viewer of the OsgWindows. The constuctor sets the rightview and osgwind parameters to the private variables of the class.

CommandCamera::~CommandCamera (   ) 
 

CommandCamera destructor.


Member Function Documentation

void CommandCamera::ManipulateCamera (   ) 
 

Manipulate Camera() function takes the corresponding values of PitchValue, Heading, coordinates of the camera, rotation angle and translation value and makes the operations to make the camera matrix ready. Then it sets this matrix to the viewer of the osgwindows.

void CommandCamera::MoveDown (   ) 
 

MoveDownfunction. For 3D and side views, this function makes the camera move up for 10 units by the callback from the up key of the keyboard. For Top view, the camera moves in the scene without changing its height.

void CommandCamera::MoveLeft (   ) 
 

MoveLeft function. This function makes the camera of the rightview move to the left by the callback from the right key of the keyboard.

void CommandCamera::MoveRight (   ) 
 

MoveRight function. This function makes the camera of the rightview move to the right by the callback from the right key of the keyboard.

void CommandCamera::MoveUp (   ) 
 

MoveUp function. For 3D and side views, this function makes the camera move up for 10 units by the callback from the up key of the keyboard. For Top view, the camera moves in the scene without changing its height.

void CommandCamera::PitchDown (   ) 
 

Pitch Down function. Makes the camera of the rightview pitch down for 10 degrees for each callback from the menu.

void CommandCamera::PitchUp (   ) 
 

Pitch Up function. Makes the camera of the rightview pitch up for 10 degrees for each callback from the menu.

void CommandCamera::SideView (   ) 
 

ThreedView function. Makes the camera of the rightview look from the side view by the callback from the button in the toolbox. The pitch up value is 0 degrees.

void CommandCamera::ThreedView (   ) 
 

ThreedView function. Makes the camera of the rightview look from the 3D view by the callback from the button in the toolbox. The pitch up value is -25 degrees.

void CommandCamera::TopView (   ) 
 

TopView function. Makes the camera of the rightview look from the top view by the callback from the button in the toolbox. The pitch up value is -90 degrees.

void CommandCamera::YawLeft (   ) 
 

Yaw Left function. Makes the camera of the rightview turn left for 10 dgrees for each callback from the menu

void CommandCamera::YawRight (   ) 
 

Yaw Right function. Makes the camera of the rightview turn right for 10 degrees for each callback from the menu

void CommandCamera::ZoomIn (   ) 
 

Zoom In function. Makes the camera of the rightview zoom in to the scene. For 3D and side views camera goes into the scene, for top view gets closer into the scene.

void CommandCamera::ZoomOut (   ) 
 

Zoom Out function. Makes the camera of the rightview zoom out from the scene. For 3D and side views camera goes back from scene, for top view gets farther from the scene.


Member Data Documentation

float CommandCamera::m_dCoordx [static]
 

x coordiante of the camera

float CommandCamera::m_dCoordy [static]
 

y coordiante of the camera

float CommandCamera::m_dCoordz [static]
 

z coordiante of the camera

float CommandCamera::m_dHeading [static]
 

heading value of the camera ( camera looks left or right )

float CommandCamera::m_dPitchValue [static]
 

pitch value of the camera ( camera looks up or down )

float CommandCamera::m_dRotation [static]
 

rotation value of the camera

OSGWindows* CommandCamera::osgwind_ [protected]
 

RightView* CommandCamera::rightview_ [protected]
 

Views CommandCamera::viewKind [static]
 

A struct variable for determining the view ofthe camera; top, side or 3D view


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:44:00 2006 by  doxygen 1.4.6-NO